delete __dirname
delete __filename
ActiveXObject = undefined

window = global
window.top = window

window.addEventListener = function () {
    console.log('window中的addEventListener：', arguments)
}


div = {
    getElementsByTagName: function (res) {
        console.log('div中的getElementsByTagName：', res)
        if (res === 'i') {
            return {}
        }
    },
}
meta = [
    {
        http_equiv: 'Content-Type',
        content: 'text/html; charset=utf-8'
    },
    {
        getAttribute: function (res) {
            console.log('meta中的getAttribute：', res)
            if (res === 'r') {
                return 'm'
            }
        },
        parentNode: {
            removeChild: function (res) {
                console.log('meta中的removeChild：', res)
            }
        },
        content: "content_code"
    }
]


document = {
    createElement: function (res) {
        console.log('document中的createElement：', res)
        if (res == 'div') {
            return div
        }
        if (res == 'form') {
            return {}
        }
        if(res == 'input'){
            return {}
        }
    },
    getElementsByTagName: function (res) {
        console.log('document中的getElementsByTagName：', res)
        if (res === 'script') {
            return {}
        }
        if(res == 'meta'){
            return meta
        }
        if(res == 'base'){
            return []
        }
    },
    getElementById: function (res) {
        console.log('document中的getElementById：', res)
        if (res === 'root-hammerhead-shadow-ui') {
            return null
        }
    },
    appendChild: function (res){
        console.log('document中的appendChild：', res)
    },
    removeChild: function (res){
        console.log('document中的removeChild：', res)
    }
}

location = {
    "ancestorOrigins": {},
    "href": "https://www.ouyeel.com/search-ng/queryResource/index",
    "origin": "https://www.ouyeel.com",
    "protocol": "https:",
    "host": "www.ouyeel.com",
    "hostname": "www.ouyeel.com",
    "port": "",
    "pathname": "/search-ng/queryResource/index",
    "search": "",
    "hash": ""
}

navigator = {
    userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
}


setInterval = function () {}
setTimeout = function () {}
clearInterval = function () {}


ts_code

func_code

function get_cookie() {
    return document.cookie
}


